<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
	<jsp:include page="../common/top.jsp"></jsp:include>
	<!-- ================== PAGE LEVEL STYLE START ================== -->
	<link rel="stylesheet" href="resource/assets/data-table/css/data-table.css" />
	<!-- ================== PAGE LEVEL STYLE END ================== -->
	
    <jsp:include page="../common/left.jsp"></jsp:include>
  
    <div id="content">
    <div class="container-fluid">
			<h1 class="page-title">角色管理 <small>在这里进行角色管理</small></h1>
			<div class="row-fluid">
				<div class="span12">
					<div class="widget">
						<div class="widget-header">
							<h4>角色列表</h4><a class="btn btn-primary" href="RoleActiontoAddRole" id="prompt" data-original-title=""><i class="icon-plus"></i>添加角色</a>
						</div>
						<div class="widget-content">
							<table id="data-table" class="table table-striped table-bordered">
								<thead>
									 <tr>
                          <th style="width:5%">
                            
                          </th>
                          <th style="width:20%">
                           	 名称
                          </th>
                          <th style="width:20%" class="hidden-phone">
                                                                       描述
                          </th>
                          <th style="width:10%" class="hidden-phone">
                           	操作
                          </th>
                        </tr>
								</thead>
								<tbody>
									<!--迭代-->
			               <s:iterator value="role.powers" var="ppw" >
							<tr class="bodyTr">
								<td><s:property value="#ppw.name"/></td>
								<td><s:property value="#ppw.remark"/></td>
								<td>
									<a href="RoleAction!deletePower.action?role.id=<s:property value='role.id' />&power.id=<s:property value='#ppw.id'/>">删除</a>
							    </td>
							</tr>
							</s:iterator>
                        <!--迭代完-->
                   
						
						<!--over  -->
								</tbody>
							</table>
							
							<div class="clearfix"></div>
						</div>
					</div>
				</div><!-- end span12 -->
			</div><!-- end row-fluid -->
		</div><!-- end container-fluid -->
    
    	
    </div>
    <jsp:include page="../common/footer.jsp"></jsp:include>
    
    <!-- ================== PAGE LEVEL PLUGINS START ================== -->
	<script src="resource/assets/data-table/js/jquery-data-table.js"></script>
	<script src="resource/assets/data-table/js/data-table.js"></script>
	<!-- ================== PAGE LEVEL PLUGINS END ================== -->
    
    <jsp:include page="../common/foot.jsp"></jsp:include>
    <script>
function toPage(pn){
	document.getElementById("pn").value = pn;
	document.forms[0].submit();
}
</script>
</html>
